cmake_minimum_required(VERSION 3.1.3)
#########################################################################

SET(BUILD_PROJECT_NAME "facedetect")
AUX_SOURCE_DIRECTORY(. SRC_LIST)
AUX_SOURCE_DIRECTORY(libfacedetection SRC_LIST)
# add_executable(${BUILD_PROJECT_NAME} ${SRC_LIST} )
# add_library(${BUILD_PROJECT_NAME} STATIC  ${SRC_LIST})
add_library(${BUILD_PROJECT_NAME} SHARED  ${SRC_LIST})
TARGET_LINK_LIBRARIES(${BUILD_PROJECT_NAME} ${OpenCV_LIBS})

install(FILES
    ${CMAKE_SOURCE_DIR}/src/facedetect.h
	DESTINATION
    ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
)
